<template>
  <div class="page shadow-gray-600 shadow-lg rounded-lg relative">
    <el-image
      :src="userStore.avatar"
      class="rounded-full w-40 ml-11 hover:scale-110 transition[all 1s]"
    />
    <p class="text-4xl ml-20 mt-5 text-cyan-500">{{ userStore.nickname }}</p>
    <p class="text-2xl ml-20 mt-5">{{ userStore.username }}</p>
    <p class="text-2xl ml-16 mt-5">
      {{ new Date().toLocaleDateString().replace("/", "-").replace("/", "-") }}
    </p>
    <div class="absolute left-60 top-10">
      简介：
      <span style="color: gray">于2012加入召唤师峡谷，</span>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from "vue-router";
import { useUserStoreHook } from "@/store/modules/user";
import { ref } from "vue";
const router = useRouter();
const userStore = useUserStoreHook();
console.log(userStore);
</script>

<style lang="sss" scoped></style>
